package pl.register.android.database.dao;

import pl.register.android.database.exception.NotFoundCourseException;
import pl.register.android.course.Course;

/**
 * @author Mateusz Strzelecki
 * @since 2013-04-27
 */
public interface CourseDao {

    Course findCourseBy(Long courseId);

    Course findCourseFor(int startYear, int endYear) throws NotFoundCourseException;

    Course insert(Course course);

    Course getLastCourse();

}
